const express = require('express')
const router = express.Router()
const {getDb, saveDb} = require('../utils/db')
router.get('',async (req,res)=>{
  try {
    const db = await getDb("../mock/user.json");
    res.json(db)
  } catch (error) {
    res.status(500).json({
      error: error.message,
    });
  }
})

module.exports = router